]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Add missing property getter
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 29 Apr 2020 22:43:32 +0000 (00:43 +0200)
committerverdre <jonas@dressler.it>
Thu, 30 Apr 2020 07:41:38 +0000 (07:41 +0000)
gjs has gotten less forgiving about missing getters/setters, and
commit 6aa1b817 missed the missing getter in the base policy class.

Most notifications use a policy subclass that already provides a
getter, but at least Main.notify() and friends don't; unbreak them
by fixing the base class.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1229

js/ui/messageTray.js

index dc5ed9ce161b721e8fbfb841f810f9eb64f10e11..058f1ef912714ecf0c01e07d8f7e516bde42427c 100644 (file)
@@ -162,6 +162,10 @@ var NotificationPolicy = GObject.registerClass({
         this.run_dispose();
     }
 
+    get enable() {
+        return true;
+    }
+
     get enableSound() {
         return true;
     }